﻿<UserControl
    x:Class="SimpleShell.Views.PageAView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:SimpleShell.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="900"
    d:DesignWidth="800"
    xmlns:c="using:nRoute.Components"
    xmlns:i="using:nRoute.Behaviors.Interactivity"
    xmlns:n="using:nRoute.Behaviors"
    xmlns:t="using:nRoute.Behaviors.Triggers"
    c:Page.Title="Your Message">

    <i:Interaction.Behaviors>
        <n:BridgeViewModelBehavior />
    </i:Interaction.Behaviors>

    <Grid Background="#FF972900">
        <TextBlock HorizontalAlignment="Left" Height="50" Margin="12" TextWrapping="Wrap" Text="Your Message" VerticalAlignment="Top" Style="{StaticResource PageSubheaderTextStyle}"/>
        <TextBox  Height="150" AcceptsReturn="True" Margin="12,55,12,0" TextWrapping="Wrap" Text="{Binding Message, Mode=TwoWay}" VerticalAlignment="Top" HorizontalAlignment="Stretch" />
        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Bottom" Orientation="Horizontal" Margin="0,0,0,12">
            <Button Width="100" Height="60" Content="Go Back" >
                <i:Interaction.Triggers>
                    <t:EventTrigger EventName="Click">
                        <n:DirectionalNavigateAction Direction="Back" />
                    </t:EventTrigger>
                </i:Interaction.Triggers>
            </Button>
            <Button Width="180" Height="60" Content="Navigate to Page B" >
            	<i:Interaction.Triggers>
            		<t:EventTrigger EventName="Click">
            			<n:NavigateAction Url="Content/PageB" />
            		</t:EventTrigger>
            	</i:Interaction.Triggers>
            </Button>
            <Button Width="180" Height="60" Content="Navigate to Page C" >
                <i:Interaction.Triggers>
                    <t:EventTrigger EventName="Click">
                        <n:NavigateAction Url="Content/PageC" />
                    </t:EventTrigger>
                </i:Interaction.Triggers>
            </Button>
        </StackPanel>
    </Grid>
</UserControl>
